<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'gameResult.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">

	<link rel="stylesheet" type="text/css" href="/newbingo/css/styles.css">
	<script>
	</script>
  </head>
  
  <body>
  
  	<div>
  	<s:iterator value="games">
   		<s:property value="gamename" />
   		<s:iterator value="gtable">
   			&nbsp;&nbsp;<a href="/newbingo/test/PeriodGame_findGameTable.action?gtno=${gtno}"><s:property value="name" /></a>
   		</s:iterator>
   	</s:iterator>
  	</div>
   	${periodGame.gameTable.game.gamename }
   	<s:if test="periodGame!=null">
   		<div>
   			${periodGame.gameTable.game.gamename }-->${periodGame.gameTable.name}-->第${periodGame.pgnum}期-->${periodGame.periodTime}
   		</div>
   		<div>
   			<form action="/newbingo/test/PeriodGame_savePeriodGameResult.action" method="post">
   				<input name="gtno" type="hidden" value="${periodGame.gameTable.gtno }"/>
   				<c:forEach var="num" begin="0" end="19">
   					<input name="lotteries[${num}]"/>
   				</c:forEach>
   				<input type="submit" value="保存开奖结果"/>
   			</form>
   		</div>
   	</s:if>
   	
  </body>
</html>
